﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    public class M_Dangky
    {
        #region Fields

        private int dangkyID;
        private int khachID;
        private int phongID;
        private DateTime ngaydangky;
        private DateTime ngaytraphong;
        private int songay;
        private decimal giaphong;
        
        #endregion

        #region Constructors

        /// <summary>
        /// Initializes a new instance of the Dangky class.
        /// </summary>
        public M_Dangky()
        {
        }

        /// <summary>
        /// Initializes a new instance of the Dangky class.
        /// </summary>
        public M_Dangky(int khachID, int phongID, DateTime ngaydangky, DateTime ngaytraphong, int songay, decimal giaphong)
        {
            this.khachID = khachID;
            this.phongID = phongID;
            this.ngaydangky = ngaydangky;
            this.ngaytraphong = ngaytraphong;
            this.songay = songay;
            this.giaphong = giaphong;
        }

        /// <summary>
        /// Initializes a new instance of the Dangky class.
        /// </summary>
        public M_Dangky(int dangkyID, int khachID, int phongID, DateTime ngaydangky, DateTime ngaytraphong, int songay, decimal giaphong)
        {
            this.dangkyID = dangkyID;
            this.khachID = khachID;
            this.phongID = phongID;
            this.ngaydangky = ngaydangky;
            this.ngaytraphong = ngaytraphong;
            this.songay = songay;
            this.giaphong = giaphong;
        }

        #endregion

        #region Properties
        /// <summary>
        /// Gets or sets the DangkyID value.
        /// </summary>
        public virtual int DangkyID
        {
            get { return dangkyID; }
            set { dangkyID = value; }
        }

        /// <summary>
        /// Gets or sets the KhachID value.
        /// </summary>
        public virtual int KhachID
        {
            get { return khachID; }
            set { khachID = value; }
        }

        /// <summary>
        /// Gets or sets the PhongID value.
        /// </summary>
        public virtual int PhongID
        {
            get { return phongID; }
            set { phongID = value; }
        }

        /// <summary>
        /// Gets or sets the Ngaydangky value.
        /// </summary>
        public virtual DateTime Ngaydangky
        {
            get { return ngaydangky; }
            set { ngaydangky = value; }
        }

        /// <summary>
        /// Gets or sets the Ngaytraphong value.
        /// </summary>
        public virtual DateTime Ngaytraphong
        {
            get { return ngaytraphong; }
            set { ngaytraphong = value; }
        }

        /// <summary>
        /// Gets or sets the Songay value.
        /// </summary>
        public virtual int Songay
        {
            get { return songay; }
            set { songay = value; }
        }

        public decimal Giaphong
        {
            get { return giaphong; }
            set { giaphong = value; }
        }
        #endregion
    }
}
